import { serverUrl } from '../utils/config';
import { get } from 'axios'

export const getProducts = (url,params) =>{
    return get (serverUrl+'/api/v1/products',{ params })
}

export const getDetaiId = (id) => {
    return get(serverUrl+`/api/v1/products/${id}`)
}